package com.jl.jlapp.mvp.base;

import android.app.Application;
import android.content.Context;
import android.support.annotation.NonNull;

import com.blankj.utilcode.util.SDCardUtils;

import java.io.File;

public class MyApplication extends Application {
    public static final String USERINFO_FILENAME = "userinfo";
    public static MyApplication app;
    private boolean isDebug = true;

    public static Context getInstance() {
        return app.getApplicationContext();
    }

    public static File getSmartCacheDir(@NonNull Context paramContext) {
        if (SDCardUtils.isSDCardEnable()) {
            return paramContext.getApplicationContext().getExternalCacheDir();
        }
        return paramContext.getApplicationContext().getCacheDir();
    }

    public void onCreate() {
        super.onCreate();
        app = this;
    }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/mvp/base/MyApplication.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */